<template>
    <div>菜单</div>
</template>
<script>
export default {
    created(){
        console.log("菜单");
        this.$bus.$off('data')
        this.$bus.$on('data',(data) => {
            console.log(data);
        })
    },
    beforeDestroy(){
        console.log("菜单销毁前")
    },
    destroyed(){
        console.log("菜单销毁完毕")
    }
}
</script>